package cms.simmytech.response;

import cms.simmytech.util.ResultCode;

public class BaseResponse {

	private int stat;

	private String mess;

	public BaseResponse(int stat) {
		this.stat = stat;
		this.mess = ResultCode.RESULTMAP.get(stat);
	}

	public BaseResponse() {

	}

	/**
	 * 获取 stat
	 * 
	 * @return stat
	 */
	public int getStat() {
		return stat;
	}

	/**
	 * 设置 stat
	 * 
	 * @param stat
	 *            stat
	 */
	public void setStat(int stat) {
		this.stat = stat;
	}

	/**
	 * 获取 mess
	 * 
	 * @return mess
	 */
	public String getMess() {
		return mess;
	}

	/**
	 * 设置 mess
	 * 
	 * @param mess
	 *            mess
	 */
	public void setMess(String mess) {
		this.mess = mess;
	}

	public void setResponse(int stat) {
		this.stat = stat;
		this.mess = ResultCode.RESULTMAP.get(stat);
	}

}
